home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2844 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: castle.nando.net!news
  2. From: sekruege@nando.net (Steve Krueger)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: SAS/C Bug? CXERR: 460351
  5. Date: 6 Feb 1996 05:39:11 GMT
  6. Organization: News & Observer Public Access
  7. Message-ID: <4f6phv$k7c@castle.nando.net>
  8. References: <1795.6608T769T2248@powertech.no>
  9. NNTP-Posting-Host: grail720.nando.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-NewsReader: Interworks_GRn 3.0 January 12, 1996
  14.  
  15. In article <1795.6608T769T2248@powertech.no> leo@powertech.no (Eivind Nordseth) writes:
  16.  
  17.  
  18. This sounds like a problem I fixed shortly after 6.56 was released.
  19. With 6.56, if A4 is used as a parameter, there is a chance
  20. you will get this CXERR during the call. All the cases that I
  21. have seen invole this function (rtEZRequestTags).
  22.  
  23. If you need a fix, send me email, and I'll send you a patch.
  24.  
  25. sk
  26.  
  27.  
  28.  
  29.  
  30. : I have a litte problem with some SAS/C code.
  31. : The following code gives an CXERR at the "TAG_END);" line:
  32. : ------------------begin--------------------
  33. : [...]
  34. : if(ReqToolsBase = (struct ReqToolsBase *) OpenLibrary(REQTOOLSNAME, 38))
  35. : {
  36. :    logmsg->lm_Return = rtEZRequestTags(mem, 
  37. :       logmsg->lm_GadFmt ? (STRPTR) logmsg->lm_GadFmt : (STRPTR) "Continue", 
  38. :       NULL, logmsg->lm_ArgArray,
  39. :       RTEZ_ReqTitle, logmsg->lm_Program,
  40. :       (pubscreen ? RT_PubScrName : TAG_IGNORE), pubscreen, 
  41. :       RT_Underscore, '_',
  42. :       TAG_END);
  43. :    CloseLibrary((struct Library *) ReqToolsBase);
  44. : }
  45. : [....]
  46. : ------------------end--------------------
  47. : SAS/C Amiga Compiler 6.56
  48. : Copyright (c) 1988-1995 SAS Institute Inc.
  49. : CXERR: 460351, Line: 227, Qpos: 504
  50. : Compiler options: NOSTKCHK DEBUG=FULL
  51. : The logmsg->lm_ArgArray reference seems to cause the CXERR. If I change the code
  52. : a bit goes the CXERR away:
  53. : ------------------begin--------------------
  54. : [...]
  55. : if(ReqToolsBase = (struct ReqToolsBase *) OpenLibrary(REQTOOLSNAME, 38))
  56. : {
  57. :    STRPTR argarray = logmsg->lm_ArgArray;
  58. :    logmsg->lm_Return = rtEZRequestTags(mem, logmsg->lm_GadFmt ? (STRPTR) logmsg->lm_GadFmt : (STRPTR) "Continue",
  59. :       NULL, argarray,
  60. :       RTEZ_ReqTitle, logmsg->lm_Program,
  61. :       (pubscreen ? RT_PubScrName : TAG_IGNORE), pubscreen, 
  62. :       RT_Underscore, '_',
  63. :       TAG_END);
  64. :    CloseLibrary((struct Library *) ReqToolsBase);
  65. : }
  66. : [....]
  67. : ------------------end--------------------
  68. : -- 
  69. : |  Eivind 'Leo' Nordseth  |  IRC #amiga: Leo   |   leo@powertech.no  |
  70. : +-------------------------+--------------------+---------------------+
  71. : |      THOR 2.2 Team      |  http://www.cs.uit.no/~kjelli/thor.html  |
  72. : How many WASPs does it take to change a light bulb?
  73. : Two: One to change the bulb and one to mix the drinks.
  74.  
  75. -- 
  76. --                    |__  o\
  77.        ______         | W    \O
  78. __________  /__       |       H\_  
  79. __  ___/_  //_/       |      /-\   
  80. _(__  )_  ,<          |    /     \ 
  81. /____/ /_/|_|         |            
  82. sekruege@nando.net    |
  83.